#!/usr/bin/env bash

cd ../../platforms/macos/build
make cvextern

cd ..
rm -rf emgucv.bundle

mkdir -p emgucv.bundle/Contents/MacOS
mkdir -p emgucv.bundle/Contents/Resources
cp ../../libs/macos/libcvextern.dylib emgucv.bundle/Contents/MacOS/
cp Info.plist emgucv.bundle/Contents/
cp icons.icns emgucv.bundle/Contents/Resources/
